package com.thread;

import java.util.concurrent.*;

/**
 * 描述:
 *
 * @author luzhongfu
 * Created by lucky on 2022-02-24 2:34 PM
 */
public class ThreadPoolTest {

    public static void main(String[] args) {
        Executors.newCachedThreadPool();
        Executors.newFixedThreadPool(10,Executors.defaultThreadFactory());
        ThreadPoolExecutor  threadPoolExecutor = new ThreadPoolExecutor(
                Runtime.getRuntime().availableProcessors(),
                Runtime.getRuntime().availableProcessors(),0L, TimeUnit.SECONDS,new LinkedBlockingDeque<>());
    }
}
